import request from '@/utils/request'

// 查询备料记录列表
export function listStocklog(query) {
  return request({
    url: '/zndd/stocklog/list',
    method: 'get',
    params: query
  })
}

// 查询备料记录详细
export function getStocklog(id) {
  return request({
    url: '/zndd/stocklog/' + id,
    method: 'get'
  })
}

// 新增备料记录
export function addStocklog(data) {
  return request({
    url: '/zndd/stocklog',
    method: 'post',
    data: data
  })
}

// 修改备料记录
export function updateStocklog(data) {
  return request({
    url: '/zndd/stocklog',
    method: 'put',
    data: data
  })
}

// 删除备料记录
export function delStocklog(id) {
  return request({
    url: '/zndd/stocklog/' + id,
    method: 'delete'
  })
}
